package com.woniuxy.user.service;

import com.woniu.zsd.commons.core.model.Result;
import com.woniuxy.user.entity.UserAddresses;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.user.param.AddAddressesParam;

import java.util.List;

/**
 * <p>
 * 用户地址表 服务类
 * </p>
 *
 * @author author
 * @since 2025-05-13
 */
public interface IUserAddressesService extends IService<UserAddresses> {

    Result<String> addAddresses(AddAddressesParam param) throws Exception;


    List<UserAddresses> getAllAddresses(String userId) throws Exception;


    boolean deleteAddresses(String userId, int id) throws Exception;

    Result<String> setDefaultAddress(String userId, int id)  throws Exception;
}
